<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>请客吃饭</title>
</head>
<body>
    <script>

        var money = prompt('输入你的钱数')
        if (money >= 2000){
            alert('请大家吃西餐');
        }else if (money >= 1500){
            alert('请大家吃快餐')
        }else if (money >= 1000){
            alert('请大家喝饮料')
        }else if (money >= 500){
            alert('请大家吃帮帮糖')
        }else{
            alert('钱带多一点，这点钱那吃的够')
        }
        
    </script>
</body>
</html>